class AddIndex < ActiveRecord::Migration
  def self.up
    add_index :examples,:text
    add_index :acceptations,:text
    add_index :direction_words,:text
    add_index :acceptations_examples,[:acceptation_id ,:example_id],:name => 'index_of_acceptation_and_example_ids'
    add_index :acceptations_direction_words,[:acceptation_id,:direction_word_id],:name => 'index_of_acceptation_and_direction_word_ids'
  end

  def self.down
    
  end
end
